using System;
using UnityEngine;

namespace Voodoo.Sauce.Internal.CrossPromo
{
	[Serializable]
	public class CrossPromoSettings
	{
		public const string BaseUrl = "https://crosspromo.voodoo.io/api";

		public const string Token = "Token 16aaae9ea829470dc2993d0afe865d1165230589";

		public const string VOODOO_GAME = "VoodooGame";

		[Tooltip("URL Scheme for the app. Allowing CrossPromo tools to detect if game is installed")]
		public string UrlScheme;

		public static string GetUrlScheme()
		{
			VoodooSettings voodooSettings = Resources.Load<VoodooSettings>("VoodooSettings");
			if (voodooSettings != null && voodooSettings.CrossPromo != null && voodooSettings.CrossPromo.UrlScheme != null)
			{
				return voodooSettings.CrossPromo.UrlScheme;
			}
			return string.Empty;
		}

		public static bool IsCrossPromoEnabled()
		{
			VoodooSettings voodooSettings = Resources.Load<VoodooSettings>("VoodooSettings");
			return voodooSettings != null && voodooSettings.EnableCrossPromo;
		}
	}
}
